<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Repetier-Firmware: src/ArduinoAVR/Repetier/motion.cpp File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="repetier-logo-trans128.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Repetier-Firmware
   &#160;<span id="projectnumber">0.91</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('motion_8cpp.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">src/ArduinoAVR/Repetier/motion.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_repetier_8h_source.html">Repetier.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#adc903858a94689ba9ae8882a135b3f3b">previousMillisCmd</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#ab70f53b8c69009326cad4be6edd3a1f0">maxInactiveTime</a> = <a class="el" href="_configuration_8h.html#a93a47e8d3e037750926e3fbef221b909">MAX_INACTIVE_TIME</a>*1000L</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#acfda5eefcb4f9723567641d4167a9582">stepperInactiveTime</a> = <a class="el" href="_configuration_8h.html#a1ce1327259c993fa88540e00c8dd09b5">STEPPER_INACTIVE_TIME</a>*1000L</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#a758f659f15b3784c13d14aee2e89e6a2">baudrate</a> = <a class="el" href="_configuration_8h.html#a734bbab06e1a9fd2e5522db0221ff6e3">BAUDRATE</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Communication speed rate.  <a href="#a758f659f15b3784c13d14aee2e89e6a2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#ac13098470e707fa98e8274e2fe1532e5">maxadv</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#af30ccb099aa74e5ab14e18d157294f1a">maxadv2</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#addae499e542db954fc7b0514113128ff">maxadvspeed</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#a446bd741ad7766bcb66b61d127448157">pwm_pos</a> [<a class="el" href="_configuration_8h.html#a8cb1f491dd9270f6668ba7a5b0454799">NUM_EXTRUDER</a>+3]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">volatile int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#aa9d0e229ec10a7a98c224f60d88fe410">waitRelax</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#ab3da02840fd9fa28a75a7c2bfa234d72">lastblk</a> = -1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="motion_8cpp.html#a2bafb93c60fc16e128dbc1f9ad3d7afa">cur_errupd</a></td></tr>
</table>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a758f659f15b3784c13d14aee2e89e6a2"></a><!-- doxytag: member="motion.cpp::baudrate" ref="a758f659f15b3784c13d14aee2e89e6a2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="_repetier_8h.html#a758f659f15b3784c13d14aee2e89e6a2">baudrate</a> = <a class="el" href="_configuration_8h.html#a734bbab06e1a9fd2e5522db0221ff6e3">BAUDRATE</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Communication speed rate. </p>

</div>
</div>
<a class="anchor" id="a2bafb93c60fc16e128dbc1f9ad3d7afa"></a><!-- doxytag: member="motion.cpp::cur_errupd" ref="a2bafb93c60fc16e128dbc1f9ad3d7afa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="motion_8cpp.html#a2bafb93c60fc16e128dbc1f9ad3d7afa">cur_errupd</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab3da02840fd9fa28a75a7c2bfa234d72"></a><!-- doxytag: member="motion.cpp::lastblk" ref="ab3da02840fd9fa28a75a7c2bfa234d72" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="motion_8cpp.html#ab3da02840fd9fa28a75a7c2bfa234d72">lastblk</a> = -1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Moves the stepper motors one step. If the last step is reached, the next movement is started. The function must be called from a timer loop. It returns the time for the next call. This is a modified version that implements a bresenham 'multi-step' algorithm where the dominant cartesian axis steps may be less than the changing dominant delta axis. Moves the stepper motors one step. If the last step is reached, the next movement is started. The function must be called from a timer loop. It returns the time for the next call.</p>
<p>Normal non delta algorithm </p>

</div>
</div>
<a class="anchor" id="ac13098470e707fa98e8274e2fe1532e5"></a><!-- doxytag: member="motion.cpp::maxadv" ref="ac13098470e707fa98e8274e2fe1532e5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_repetier_8h.html#ac13098470e707fa98e8274e2fe1532e5">maxadv</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af30ccb099aa74e5ab14e18d157294f1a"></a><!-- doxytag: member="motion.cpp::maxadv2" ref="af30ccb099aa74e5ab14e18d157294f1a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_repetier_8h.html#af30ccb099aa74e5ab14e18d157294f1a">maxadv2</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="addae499e542db954fc7b0514113128ff"></a><!-- doxytag: member="motion.cpp::maxadvspeed" ref="addae499e542db954fc7b0514113128ff" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="_repetier_8h.html#addae499e542db954fc7b0514113128ff">maxadvspeed</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab70f53b8c69009326cad4be6edd3a1f0"></a><!-- doxytag: member="motion.cpp::maxInactiveTime" ref="ab70f53b8c69009326cad4be6edd3a1f0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a> <a class="el" href="_repetier_8h.html#ab70f53b8c69009326cad4be6edd3a1f0">maxInactiveTime</a> = <a class="el" href="_configuration_8h.html#a93a47e8d3e037750926e3fbef221b909">MAX_INACTIVE_TIME</a>*1000L</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="adc903858a94689ba9ae8882a135b3f3b"></a><!-- doxytag: member="motion.cpp::previousMillisCmd" ref="adc903858a94689ba9ae8882a135b3f3b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a> <a class="el" href="_repetier_8h.html#adc903858a94689ba9ae8882a135b3f3b">previousMillisCmd</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a446bd741ad7766bcb66b61d127448157"></a><!-- doxytag: member="motion.cpp::pwm_pos" ref="a446bd741ad7766bcb66b61d127448157" args="[NUM_EXTRUDER+3]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="_repetier_8h.html#a446bd741ad7766bcb66b61d127448157">pwm_pos</a>[<a class="el" href="_configuration_8h.html#a8cb1f491dd9270f6668ba7a5b0454799">NUM_EXTRUDER</a>+3]</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="acfda5eefcb4f9723567641d4167a9582"></a><!-- doxytag: member="motion.cpp::stepperInactiveTime" ref="acfda5eefcb4f9723567641d4167a9582" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a> <a class="el" href="_repetier_8h.html#acfda5eefcb4f9723567641d4167a9582">stepperInactiveTime</a> = <a class="el" href="_configuration_8h.html#a1ce1327259c993fa88540e00c8dd09b5">STEPPER_INACTIVE_TIME</a>*1000L</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa9d0e229ec10a7a98c224f60d88fe410"></a><!-- doxytag: member="motion.cpp::waitRelax" ref="aa9d0e229ec10a7a98c224f60d88fe410" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">volatile int <a class="el" href="_repetier_8h.html#aa9d0e229ec10a7a98c224f60d88fe410">waitRelax</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="motion_8cpp.html">motion.cpp</a>      </li>

    <li class="footer">Generated on Mon Dec 30 2013 18:53:02 for Repetier-Firmware by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
